package com.iwomy.secureplat.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 设备属性
 *
 * @author pig
 * @date 2023-11-14 10:34:52
 */
@Data
@TableName("basic_device_attribute")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备属性")
public class BasicDeviceAttributeEntity extends Model<BasicDeviceAttributeEntity> {


	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "ID")
	private Long id;

	/**
	 * 设备类型
	 */
	@Schema(description = "设备类型")
	private Long deviceTypeId;

	/**
	 * 属性名称
	 */
	@Schema(description = "属性名称")
	private String attributeName;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "修改时间")
	private LocalDateTime updateTime;

	/**
	 * 租户id
	 */
	@Schema(description = "租户id")
	private Long tenantId;

	/**
	 * 单位id
	 */
	@Schema(description = "单位id")
	private Long deptId;

	/**
	 * 是否被删除标记（0未删除；1已删除）
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "是否被删除标记（0未删除；1已删除）")
	private String delFlag;

}